﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Edit.Master"  AutoEventWireup="true"  CodeBehind="BD_Payment_Edit.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Contract.BD_Payment_Edit"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	
<script language="javascript" type="text/javascript">
        var opts = null;
        function InitRules() {
            opts = {
                 rules:
                 {
					<%= txtID.UniqueID%>:{required: true,maxlength: 36},
					<%= txtContractID.UniqueID%>:{required: true,maxlength: 36},
					<%= txtPaymentCode.UniqueID%>:{required: true,maxlength: 200},
					<%= numAmount.UniqueID%>:{required: true,number: true},
					<%= numTotalAmount.UniqueID%>:{required: true,number: true},
					<%= numContractAmount.UniqueID%>:{required: true,number: true},
					<%= numTotalPercent.UniqueID%>:{required: true,number: true},
					<%= ddlPaymentBuState.UniqueID%>:{required: true},
					<%= txtCreator.UniqueID%>:{required: true,maxlength: 36},
					<%= dtpCreateTime.UniqueID%>:{required: true,date: true}					
                 },
                 messages:
                 {
					<%= txtID.UniqueID%>:{required: "标识 请输入合适的值",maxlength: "标识 最多只能输入36个字符"},
					<%= txtContractID.UniqueID%>:{required: "合同标识 请输入合适的值",maxlength: "合同标识 最多只能输入36个字符"},
					<%= txtPaymentCode.UniqueID%>:{required: "支付单号 请输入合适的值",maxlength: "支付单号 最多只能输入200个字符"},
					<%= numAmount.UniqueID%>:{required: "本期实际支付 请输入合适的值",number: "本期实际支付 请输入有效的数字"},
					<%= numTotalAmount.UniqueID%>:{required: "至本期累计支付 请输入合适的值",number: "至本期累计支付 请输入有效的数字"},
					<%= numContractAmount.UniqueID%>:{required: "本期合同金额 请输入合适的值",number: "本期合同金额 请输入有效的数字"},
					<%= numTotalPercent.UniqueID%>:{required: "累计支付百分比 请输入合适的值",number: "累计支付百分比 请输入有效的数字"},
					<%= ddlPaymentBuState.UniqueID%>:{required: "业务状态 请选择合适的值"},
					<%= txtCreator.UniqueID%>:{required: "创建人 请输入合适的值",maxlength: "创建人 最多只能输入36个字符"},
					<%= dtpCreateTime.UniqueID%>:{required: "创建日期 请选择合适的值",date: "创建日期 请选择有效的日期"}					
                 },
                 onfocusout:false,
                 onclick:false,
                 onkeyup:false,
                 errorPlacement: function(error, element) {
                    $("#errorContainer").show();
                    error.html("<li>* "+error.html()+"</li>");
                    error.appendTo("#errorContainer");
                 },
                 wrapper:"li"
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit" style="border-bottom:0px;margin-top:2px;">
            <th style="border-bottom:0px">支付单维护</th>
        </table>
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit">
		<tr>
			<td style="width:80px;" class="title1">标识</td>
			<td><asp:TextBox ID="txtID" runat="server"  cssClass="input2" MaxLength="36" Width="96%"></asp:TextBox></td>
			<td style="width:80px;" class="title1">合同标识</td>
			<td><asp:TextBox ID="txtContractID" runat="server"  cssClass="input2" MaxLength="36" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title1">支付单号</td>
			<td><asp:TextBox ID="txtPaymentCode" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
			<td class="title1">本期实际支付</td>
			<td><asp:TextBox ID="numAmount" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isDecimal();" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title1">支付日期</td>
			<td><asp:TextBox ID="dtpPaymentDate" runat="server" cssClass="input2" onfocus="setday(this);" Width="96%"></asp:TextBox></td>
			<td class="title1">至本期累计支付</td>
			<td><asp:TextBox ID="numTotalAmount" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isDecimal();" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title1">本期合同金额</td>
			<td><asp:TextBox ID="numContractAmount" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isDecimal();" Width="96%"></asp:TextBox></td>
			<td class="title1">累计支付百分比</td>
			<td><asp:TextBox ID="numTotalPercent" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isDecimal();" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title1">费用类别</td>
			<td><asp:DropDownList ID="ddlPaymentType" runat="server" cssClass="input2"  Width="98%"></asp:DropDownList></td>
			<td class="title1">支付来源</td>
			<td><asp:DropDownList ID="ddlPaymentSource" runat="server" cssClass="input2"  Width="98%"></asp:DropDownList></td>
		</tr>
		<tr>
			<td class="title1">备注</td>
			<td><asp:TextBox ID="txtRemark" runat="server"  cssClass="input2" MaxLength="16" Width="96%"></asp:TextBox></td>
			<td class="title1">业务状态</td>
			<td><asp:DropDownList ID="ddlPaymentBuState" runat="server" cssClass="input2"  Width="98%"></asp:DropDownList></td>
		</tr>
		<tr>
			<td class="title1">创建人</td>
			<td><asp:TextBox ID="txtCreator" runat="server"  cssClass="input2" MaxLength="36" Width="96%"></asp:TextBox></td>
			<td class="title1">创建日期</td>
			<td><asp:TextBox ID="dtpCreateTime" runat="server" cssClass="input2" onfocus="setday(this);" Width="96%"></asp:TextBox></td>
		</tr>
        </table>
        <div class="save_area">
            <asp:Button runat="server" ID="btnOK" Text="确定" class="btn_normal" 
                onmouseover="this.className='btn_active'" 
                onmouseout="this.className='btn_normal'" onclick="btnOK_Click"/>
            <input type="button" id="btnExit" value="取消" onclick="javascript:window.returnValue=false;window.close();" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
        </div>
</asp:Content>


